package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.MemberEntity;
import com.atguigu.gulimall.auth.vo.RegVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-member")
public interface MemberServiceFeign {
    @PostMapping("/member/member/register")
    R memberRegister(@RequestBody RegVo vo);

    @RequestMapping("/member/member/findByUsername")
    R findByUsername(@RequestParam("username") String username);
}
